<h1>Autors List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Apellido paterno</th>
      <th>Apellido materno</th>
      <th>Nombres</th>
      <th>Pais</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($autors as $autor): ?>
    <tr>
      <td><a href="<?php echo url_for('autores/show?id='.$autor->getId()) ?>"><?php echo $autor->getId() ?></a></td>
      <td><?php echo $autor->getApellidoPaterno() ?></td>
      <td><?php echo $autor->getApellidoMaterno() ?></td>
      <td><?php echo $autor->getNombres() ?></td>
      <td><?php echo $autor->getPaisId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('autores/new') ?>">New</a>
